import fetch from '../../request'

// 登录
export function requestLogin(formData: any) {
  return fetch.post({
    url: '/api-admin/user/doLogin.do',
    data: formData
  })
}
// 退出登录
export const requestLogout = () => {
  return fetch.post({
    url: '/api-admin/user/logout'
  })
}
// 获取用户信息
export const requestUserInfo = () => {
  return fetch.post({
    url: '/api-admin/user/getCurrentUser'
  })
}

/* export function user(formData: any) {
  return fetch.post({
    url: '/api-admin/user/doLogin.do',
    data: formData,
    hideLoading: true // 隐藏加载loading
  })
} */
